package com.jiao.service;

import com.jiao.domain.Result;
import com.jiao.domain.VO.ArticleVo;
import com.jiao.domain.VO.HotArticleVo;
import com.jiao.domain.VO.PageVo;
import com.jiao.domain.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ArticleService extends IService<Article> {
    Result<List<HotArticleVo>> hotArticleList();

    Result<ArticleVo> selectArticleListByIds(Long id);

    Result<PageVo> selectArticleListByCategoryId(Integer pageNum, Integer pageSize, Long categoryId);

    Result<Long> selectViewCount(Long articleId);
}
